package org.example.kidscode.entity;

import lombok.Data;
import javax.persistence.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "payment_package")
public class PaymentPackage {

    @Id
    @Column(name = "package_id", length = 20)
    private String packageId;

    @Column(name = "name", nullable = false, length = 50)
    private String name;

    @Column(name = "course_type", length = 20)
    private String courseType;

    @Column(name = "total_classes")
    private Short totalClasses;

    @Column(name = "price", precision = 10, scale = 2)
    private BigDecimal price;

    @Column(name = "discount", precision = 5, scale = 2)
    private BigDecimal discount;

    @Column(name = "valid_days")
    private Short validDays;

    @Column(name = "description", columnDefinition = "TEXT")
    private String description;

    @Column(name = "status")
    private Boolean status;

    @Column(name = "create_time")
    private LocalDateTime createTime;
}

